package com.kim.smartring.utils;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

/**
 * Title: XXXX (类或者接口名称) Description: XXXX (简单对此类或接口的名字进行描述) Copyright:
 * Copyright (c) 2012 Company:深圳彩讯科技有限公司
 * 
 * @author duminghui
 * @version 1.0
 */
public class UrlUtils {
	public static void urlParamsBuilderUTF8(StringBuilder s, String key,
			String value) {
		try {
			s.append(key).append("=").append(URLEncoder.encode(value, "UTF-8"))
					.append("&");
		} catch (UnsupportedEncodingException e) {
			e.printStackTrace();
		}
	}
}
